
package com.zjff.myshop.front.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品详情页VO
 */
@Data
public class GoodsDetailVO implements Serializable {

    @ApiModelProperty(value = "商品id", position = 1)
    private Integer id;

    @ApiModelProperty(value = "分类id", position = 2)
    private Integer categoryId;

    @ApiModelProperty(value = "商品名称", position = 3)
    private String name;

    @ApiModelProperty(value = "商品规格", position = 4)
    private String spec;

    @ApiModelProperty(value = "商品图片", position = 5)
    private String img;

    @ApiModelProperty(value = "商品价格", position = 6)
    private BigDecimal price;

    @ApiModelProperty(value = "商品库存", position = 7)
    private Integer count;

    @ApiModelProperty(value = "上架时间", position = 8)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "状态", position = 9)
    private Byte status;

    @ApiModelProperty(value = "商品轮播图", position = 10)
    private String[] album;

    @ApiModelProperty(value = "商品详情字段", position = 11)
    private String content;
}
